package cn.ad.param;


import cn.ad.common.DataUtils;
import cn.ad.entity.Strategy;
import cn.ad.model.TargetParam;
import com.fasterxml.jackson.annotation.JsonProperty;

public class StrategyParam extends Strategy {

    private int validate;
    /**
	 * 策略edit add class
	 */
	private static final long serialVersionUID = 1L;

	//广告位数组
    private Integer[] spaces;
    
    //创意数组
    private Integer[] creatives;
    //平台数组
    private Integer[] platforms;


	/**
	 * 列表中激活策略
	 */
	private boolean  activation = false;

    /**
     * 定向数据
     */
    @JsonProperty("targetParam")
    private TargetParam targetParam;
	public Integer[] getSpaces() {
		return spaces;
	}
	public void setSpaces(Integer[] spaces) {
		this.spaces = spaces;
	}
	public Integer[] getCreatives() {
		return creatives;
	}
	public void setCreatives(Integer[] creatives) {
		this.creatives = creatives;
	}
	
	
	
	public Integer[] getPlatforms() {
		return platforms;
	}
	public void setPlatforms(Integer[] platforms) {
		this.platforms = platforms;
	}
	public TargetParam getTargetParam() {
		return targetParam;
	}
	public void setTargetParam(TargetParam targetParam) {
		this.targetParam = targetParam;
	}
    

	public int getValidate() {
		return validate;
	}
	public void setValidate(int validate) {
		this.validate = validate;
	}


	@Override
	public String getResType() {
		return DataUtils.isNull(super.getResType()) ? null : super.getResType();
	}

	@Override
	public String getResourceType() {
		return DataUtils.isNull(super.getResourceType()) ? null : super.getResourceType();
	}

	public boolean isActivation() {
		return activation;
	}

	public void setActivation(boolean activation) {
		this.activation = activation;
	}
}
